const express = require('express')

const userHandler = require('../router_handle/user')
const router = express.Router()

const expressJoi = require('@escook/express-joi')
const { register_login_schema } = require('../schema/user')



router.post("/regUser", expressJoi(register_login_schema), userHandler.regUser)
    // router.post('/regUser', (req, res) => {
    //     res.send('ok');
    // })

router.post('/login', expressJoi(register_login_schema), userHandler.login)

module.exports = router